<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>班级列表</title>
</head>
<body>
<h4>班级列表</h4>
{% if classname %}
{% for c in classname %}
    <p>班名：{{c.name}}，创建时间：{{c.pub_date}}</p>
{% endfor %}
{% else %}
    <p>暂无班级信息</p>
{% endif %}
<a href="{% url 'classmate:index' %}">返回</a>
</body>
</html>